<script>
	export default {
		data() {
			return {
				id:''
			}
		},
		methods: {
			xqing () {
				uni.scanCode({
					success: (res) => {
						uni.navigateTo({
							url:'/pages/xiangqing/xiangqing?id=' + res.result
						})
					}
				})
			}
		},
		onShow () {
			this.xqing()
		}
	}
</script>

<style>
	.scan-result {
		min-height: 50upx;
		line-height: 50upx;
	}
</style>
